package com.ruoyi.attendance.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考勤记录对象 attendance_info
 * 
 * @author Weiney
 * @date 2025-03-01
 */
public class AttendanceInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考勤ID */
    @Excel(name = "考勤ID")
    private Long attendanceId;

    /** 当前上课的课程记录ID */
    private Long courseRecordId;

    /** 课程ID */
    private Long courseId;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 教师ID */
    private Long userId;

    /** 部门ID */
    private Long deptId;

    /** 考勤时长 */
    @Excel(name = "考勤时长")
    private Long attendanceTime;

    /** 考勤类型 */
    @Excel(name = "考勤类型")
    private Long attendanceType;

    /** 结束状态：考勤是否结束 */
    @Excel(name = "结束状态", readConverterExp = "0=未结束,1=已结束")
    private Long endType;

    public void setAttendanceId(Long attendanceId) 
    {
        this.attendanceId = attendanceId;
    }

    public Long getAttendanceId() 
    {
        return attendanceId;
    }
    public void setCourseRecordId(Long courseRecordId) 
    {
        this.courseRecordId = courseRecordId;
    }

    public Long getCourseRecordId() 
    {
        return courseRecordId;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setAttendanceTime(Long attendanceTime) 
    {
        this.attendanceTime = attendanceTime;
    }

    public Long getAttendanceTime() 
    {
        return attendanceTime;
    }
    public void setAttendanceType(Long attendanceType) 
    {
        this.attendanceType = attendanceType;
    }

    public Long getAttendanceType() 
    {
        return attendanceType;
    }

    public Long getEndType() {
        return endType;
    }

    public void setEndType(Long endType) {
        this.endType = endType;
    }

    @Override
    public String toString() {
        return "AttendanceInfo{" +
                "attendanceId=" + attendanceId +
                ", courseRecordId=" + courseRecordId +
                ", courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", userId=" + userId +
                ", deptId=" + deptId +
                ", attendanceTime=" + attendanceTime +
                ", attendanceType=" + attendanceType +
                ", endType=" + endType +
                '}';
    }
}
